Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial implementation of KSP 2 Gradle plugin #1446

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

ting-yuan
Copy link
Collaborator

In short, KspAATask loads symbol-processing-aa, which is an all-in-one fat jar that has no dependencies except kotlin-stdlib, and runs it in a classloader isolated worker.

Besides incremental processing and multiplatform, there are still quite a few TODOs, such as a caching classloader with a clean classpath, processor options and other configs from KspExtension, logger, use Gradle's jdk home, etc.

On the launcher, there are, for example, multiple-rounds, deprecating CompilerConfiguration, multiplatform, etc.

@ting-yuan ting-yuan force-pushed the ksp-gradle-plugin branch 2 times, most recently from 10e9c36 to cc3542c Compare July 12, 2023 18:32
Although gradle-plugin/ and compiler-plugin/ depend on KGP and Kotlin
compiler, they are always loaded and should not pull the dependencies
actively.
It can be switched on by setting the gradle property ksp.useK2=true
@ting-yuan ting-yuan merged commit 94a71b0 into google:main Jul 20, 2023
3 checks passed
@ting-yuan ting-yuan deleted the ksp-gradle-plugin branch October 11, 2024 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants